package cn.iocoder.yudao.module.crm.enums.common;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * CRM 公海操作类型
 *
 * @author HUIHUI
 */
@RequiredArgsConstructor
@Getter
public enum CrmDataTypeEnum implements IntArrayValuable {

    OWNER(10, "自建"),

    RECEIVE(20, "公海领取"),

    DISTRIBUTE(30, "公海分配"),

    TRANSFER(40, "转移给我"),
    ;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmDataTypeEnum::getType).toArray();

    /**
     * 类型
     */
    private final Integer type;
    /**
     * 名称
     */
    private final String name;


    @Override
    public int[] array() {
        return ARRAYS;
    }

}
